import pymysql
conn = pymysql.connect(host = "192.168.199.132", port = 3306, user = "root", password = "mysql", db = "heima", charset = "utf8")

cur = conn.cursor()
cur.execute("select * from users")
print(cur.fetchall())
cur.close()
cur = conn.cursor()
cur.execute("select name from users")
print(cur.fetchall())
cur.close()
conn.close()
